package 继承之成员变量;

public class DerivedClass extends SuperClass {
    int numDerivedClass = 20;
    int num = 200;

    public void methodDerived() {
        //使用的是本类中的num
        System.out.println(num);
    }
}
